package com.medium.house.service;

import java.util.List;
import com.medium.house.entity.WechatUser;

public interface WechatUserService
{
    int DESC = 0;
    int ASC = 1;

    int add(WechatUser dto);

    int delete(long id);

    int update(WechatUser dto);

    WechatUser get(long id);

    WechatUser getWechatUserByOpenid(String openid);

    WechatUser getWechatUserByOpenid(String openid,Integer status);


    List<WechatUser> getByPage(
        int start,
        int limit,
        int orderby,
        int order);

    List<Long> getIdsByPage(
        int start,
        int limit,
        int orderby,
        int order);

    long count();

}